package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Permission;

import java.util.List;

public interface IPermissionService {
    List<Permission> selectAll();


    /**
     * 根据角色id查询权限集合
     * @return
     */
    List<Permission> selectByRoleId(Long roleId);

    /**
     * 权限加载
     */
    void reload();

    List<String> selectByEmployeeId(Long id);
}
